package cn.tedu.spring;

import org.springframework.stereotype.Component;

@Component("o")//修改了bean的名字，从order改成了o
//让spring去new{ "order",反射创建的Oder对象 }
public class Order {
    public void save(){
        System.out.println(1000);
    }

}
